﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Telecom.Data;

namespace Telecom.Service
{
    public class hangSXSer
    {
        private readonly EntitiesTelecom dbContext = new EntitiesTelecom();

        public hangSXSer()
        {
            dbContext.Configuration.LazyLoadingEnabled = false;
            dbContext.Configuration.ProxyCreationEnabled = false;
        }

        public List<HANGSX> getList()
        {
            dbContext.Configuration.LazyLoadingEnabled = false;
            try
            {
                return dbContext.HANGSX.ToList();
            }
            catch (Exception e)
            {
                List<HANGSX> _listRe = new List<HANGSX>();
                return _listRe;
            }
        }

    }
}
